package cn.melonlib.graphql.model.support.filter;

import cn.melonlib.graphql.annos.GraphqlField;
import cn.melonlib.graphql.annos.GraphqlType;
import cn.melonlib.graphql.annos.GraphqlTypeDeclare;
import cn.melonlib.graphql.model.enums.GraphqlTypeMode;
import lombok.Data;

import java.util.List;

@Data
@GraphqlType(comment = "长整型输入",namespaces = "*",declares = {@GraphqlTypeDeclare(mode = GraphqlTypeMode.INPUT)})
public class GraphqlLongFilter {

    @GraphqlField(comment = "像等 [=]")
    private Long eq;

    @GraphqlField(comment = "不等于 [!=, <>] ")
    private Long neq;

    @GraphqlField(comment = "小于 [<]")
    private Long lt;

    @GraphqlField(comment = "大于 [>]")
    private Long gt;

    @GraphqlField(comment = "小于等于 [<=]")
    private Long lte;

    @GraphqlField(comment = "大于等于 [>=]")
    private Long gte;

    @GraphqlField(comment = "包含 数据库查询[in]")
    private List<Long> in;

    @GraphqlField(comment = "不包含 数据库查询[not in]")
    private List<Long> nin;

    @GraphqlField(comment = "空判断 数据库查询[true 为 is null，false 为 is not null]")
    private boolean non;

}
